package com.yuanrui.auth.domain.convert;

import com.yuanrui.auth.basic.entity.AuthPermission;
import com.yuanrui.auth.basic.entity.AuthRole;
import com.yuanrui.auth.domain.entity.AuthPermissionBO;
import com.yuanrui.auth.domain.entity.AuthRoleBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface AuthPermissionConverter {
    AuthPermissionConverter INSTANCE = Mappers.getMapper(AuthPermissionConverter.class);

    //将用户信息转换为用户信息BO
    AuthPermissionBO convertToBO(AuthPermission authPermission);

    //将用户信息BO转换为用户信息
    AuthPermission convertToEntity(AuthPermissionBO authPermissionBO);
}
